package checksum

func Xor(buf []byte, len int) byte {
	temp := buf[0]
	for i := 1; i < len; i++ {
		temp ^= buf[i]
	}
	return temp
}
